/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 徐海涛
 * Date: 2021-11-13
 * Time: 18:33
 */
public class TestDemo {







}


    public static void main8(String[] args) {
        int n = 10;


    }

    public static void main7(String[] args) {
        int year = 2000;
        if (year % 100 == 0) {
            if (year % 400 == 0) {
                System.out.println(year+"是闰年！");
            } else {
                System.out.println(year+"不是闰年！");
            }//这里一个循环已经结束了
        }else//
    }
    public static void main6(String[] args) {
        int year = 2000;
        if (year % 400 == 0) {
            System.out.println("是闰年");
        } else {
            System.out.println("不是闰年");
        }




    }
    public static void main5(String[] args) {
        int year = 2000;
        if (year % 400 == 0) {
            System.out.println("是闰年");
        } else {
            System.out.println("不是闰年");

        }








    }

    public static void main4(String[] args) {
        int num = -3;
        if (num > 0) {
            System.out.println("num 是正数");//多变注意细节
        } else if (num < 0) {
            System.out.println("num 是负数");
        } else {
            System.out.println("num 是 0");
        }
    }
    public static void main3(String[] args) {
        int num3 = 10;
        if (num3 > 0) {
            System.out.println("num3 是正数");
        } else {
            System.out.println("num3 是负数");
        }

    }
    public static void main2(String[] args) {
        int num1 = 10;//注意细节！！！！！！！！！
        if (num1 % 2 ==0) {
            System.out.println("num1 是偶数");
        } else {
            System.out.println("num 是奇数");
        }
    }
    public static void main1(String[] args) {
        int num = 10;
        if (num % 2 == 0) {
            System.out.println("num 是偶数");
        } else {
            System.out.println("num 是奇数");
        }
    }
}
